package com.example.alspringaop.spring.framework.aop.aspect;

import lombok.Data;

import java.lang.reflect.Method;

@Data
public class ALAdvice {
    private Object aspect;
    private Method adviceMethod;
    private String throwName;


    public ALAdvice(Object aspect, Method adviceMethod) {
        this.aspect = aspect;
        this.adviceMethod = adviceMethod;
    }
    public ALAdvice(Object aspect, Method adviceMethod, String throwName) {
        this.aspect = aspect;
        this.adviceMethod = adviceMethod;
        this.throwName = throwName;
    }
}
